﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPDetCompendio
@using Resources;
@{   
    Layout = "~/Views/Shared/Layaout/mantenimiento/_LayoutPopMante.cshtml";
    var foo = new List<SelectListItem> { 
        new SelectListItem { Text = "Elemento", Value = "1"},
        new SelectListItem { Text = "Grupo", Value = "2" }
    };   
}
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.validatelJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.unobtrusiveJS)" ></script>
<script type="text/javascript">
    $(function () {
        calendarFechaFuturo('dtFecIniVig', '1');
    });
</script>

@using (Html.BeginForm("AgregarCompendioDetalle", "CompendioMante", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset style="width:600px;" class="fieldsetStyle1">
        <legend class="tituloBlue9">Actualizar Datos del Compendio</legend>
         <table border="0" style="width:580px;" cellpadding="2" cellspacing="0" class="tablaDetalle1">
	     <tbody>							
	        <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Nombre Elemento</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vNomDetalle, new {style="width:450px;", maxlength=150, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vNomDetalle)
		        </td>
	        </tr>
             <tr>
                <td class="tituloCelesteB8">Nombre Corto</td>
		        <td>:</td>
		        <td>@Html.TextBoxFor(model => model.vNomCorto, new {style="width:145px;", maxlength=20, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vNomCorto)
		        </td>
	        </tr>            
             <tr>
                <td class="tituloCelesteB8">Código Elemento</td>
		        <td>:</td>
		        <td>@Html.TextBoxFor(model => model.vCodElemento, new {style="width:65px;", maxlenght=10,onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vCodElemento)
		        </td>
	        </tr>
             <tr>
                <td class="tituloCelesteB8">Grupo</td>
		        <td>:</td>
		        <td>
                    @Html.DropDownList("nIndEleGrupo", foo)                    
                    @Html.ValidationMessageFor(model => model.nIndEleGrupo)                   
		        </td>
	        </tr>
             <tr>
                <td class="tituloCelesteB8">Fec. Inicio Vigencia</td>
		        <td>:</td>
		        <td>
                    @Html.TextBoxFor(model => model.dtFecIniVig, new { @maxlength = "10", style="width:60px;"})                    
                    @Html.ValidationMessageFor(model => model.dtFecIniVig)
		        </td>
	        </tr>
             <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Referencia1</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vDesRef1, new {style="width:145px;", maxlength=20, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vDesRef1)
		        </td>
	        </tr>
             <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Referencia2</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vDesRef2, new {style="width:145px;", maxlength=20, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vDesRef2)
		        </td>
	        </tr>
             <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Referencia3</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vDesRef3, new {style="width:145px;", maxlength=20, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vDesRef3)
		        </td>
	        </tr>
            <tr><td colspan="3" align="center"><input type="button" value="Registrar Datos" onclick="javascript: agregarElementoDetalleFinal(this.form);" /></td></tr>
             @Html.Hidden("nIdeCompendio", Request["nIdeCompendio"])
             @Html.Hidden("nIdeUsuReg",@Session["nIdeUsuario"])
             @Html.Hidden("dtFecReg", @DateTime.Now.ToString())
             @Html.Hidden("nEstado", 1)
         </tbody>
         </table>
        <input id="idTD" name="idTD" type="hidden" value="@ViewBag.CAMPO" />
    </fieldset>
}